package com.wrial.seckill.dao;
/*
 * @Author  Wrial
 * @Date Created in 15:19 2020/4/6
 * @Description
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wrial.seckill.dataobject.SequenceDO;
import org.apache.ibatis.annotations.Select;

public interface SequenceDOmapper  extends BaseMapper<SequenceDO> {
    // 使用for update 加一个排它锁
    @Select("select * from sequence_info where name = #{order_info} for update")
    SequenceDO getSequenceByName(String order_info);
}
